<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center storeDetails_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub storeDetails_fd0_0'>
					<view class='flex flex-wrap align-center storeDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  storeDetails_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='storeDetails_fd0_0_c1'>店铺详情</text>
					<view class='flex flex-wrap align-center storeDetails_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view style="position: relative">
					<swiper ref="benbenSwiperfd1_0" @change="bannerIndexfd1_0 = $event.detail.current"
						class='flex position-relative storeDetails_fd1_0' previous-margin="0rpx" next-margin="0rpx"
						:display-multiple-items="1" :interval="5000" :duration="500" :autoplay='true' :circular='true'>

						<template v-for='(item,key0) in shopDetails.store_backdrop'>
							<swiper-item class='flex  storeDetails_fd1_0' :key='key0'>
								<image class='storeDetails_fd1_0' mode="aspectFill" :src='item'></image>
							</swiper-item>
						</template>

					</swiper>
					<view style="position: absolute"
						class="flex dot flex align-center justify-center storeDetails_swiperDotfd1_0">
						<view class='flex flex align-center justify-center storeDetails_numberfd1_0_c0'>
							<text class='storeDetails_numberfd1_0_c0_c0'>{{bannerIndexfd1_0+1}}</text>
							<text class='storeDetails_numberfd1_0_c0_c1'>/</text>
							<text class='storeDetails_numberfd1_0_c0_c1'>{{(shopDetails.store_backdrop.length)}}</text>
						</view>

					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-wrap align-center benben-flex-layout storeDetails_flex_2">
				<image class='self-start storeDetails_fd2_0' mode="aspectFill" :src='shopDetails.store_logo'></image>
				<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
					<text class='flex-sub storeDetails_fd2_1_c0'>{{shopDetails.store_name}}</text>
					<view class='flex flex-wrap align-center storeDetails_fd2_1_c1'>
						<view class='flex flex-wrap align-center'>
							<template v-for="starNum in [1,2,3,4,5]">
								<image v-if="shopDetails.store_star >= starNum" :key="starNum"
									class='storeDetails_star1fd2_1_c1_c0' mode="aspectFit" :src='STATIC_URL+"108.png"'>
								</image>
								<image v-else :key="starNum" class='storeDetails_star1fd2_1_c1_c0' mode="aspectFit"
									:src='STATIC_URL+"109.png"'></image>
							</template>
						</view>
						<text class='storeDetails_fd2_1_c1_c1'>{{shopDetails.store_star}}</text>
						<text class='storeDetails_fd2_1_c1_c2'>分</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout storeDetails_flex_3">
				<view class='flex flex-wrap align-center storeDetails_fd3_0'>
					<text class='storeDetails_fd3_0_c0'>营业时间</text>
					<text class='storeDetails_fd3_0_c1'>{{shopDetails.business_hours}}</text>
					<text class='storeDetails_fd3_0_c2'>-</text>
					<text class='storeDetails_fd3_0_c1'>{{shopDetails.end_time}}</text>
				</view>
		<!-- 		<view class='flex flex-wrap align-center storeDetails_fd3_0' @tap.stop="handleJumpDiy"
					data-type="navigateTo"
					:data-url="`/pages/order/businessLicense/businessLicense?id=${shopDetails.aid}`">
					<text class='storeDetails_fd3_0_c0'>营业执照</text>
					<image class='storeDetails_fd3_1_c1' mode="aspectFit" :src='STATIC_URL+"110.png"'></image>
				</view> -->
				<view class='flex flex-wrap align-center storeDetails_fd3_2'>
					<text class='storeDetails_fd3_2_c0'>店铺地址</text>
					<image class='storeDetails_fd3_2_c1' mode="aspectFit" :src='STATIC_URL+"111.png"'></image>
					<text class='flex-sub storeDetails_fd3_2_c2'>{{shopDetails.store_address}}</text>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center storeDetails_flex_4">
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center storeDetails_flex_5">
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"bannerIndexfd1_0": 0,
				"shopDetails": {
					"aid": "",
					"store_name": "",
					"store_logo": "",
					"store_address": "",
					"business_licence": "",
					"contacts_name": "",
					"contacts_phone": "",
					"store_backdrop": [],
					"service_phone": "",
					"business_hours": "",
					"store_introduce": "",
					"store_star": "",
					"store_collection_num": "",
					"certification_status": "",
					"store_status": "",
					"is_collection": "",
					"mobile": "",
					"expiration_time": "",
					"location": "",
					"store_backdrop_many": [],
					"end_time": "",
					"score": "",
					"examine": "",
					"readon": "",
					"account_wx": "",
					"account_alipay": "",
					"account_bank": "",
					"withdraw_handling_fee": "",
					"user_money": ""
				},
				"id": ""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getShopDetailsFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取店铺详情信息
			async getShopDetailsFunc() {
				//请求方法
				//数据验证

				let datashopDetails = await this.$api.get(global.apiUrls.post641b0ae793987, {
					partner_id: this.id,
					user_id: this.userInfo.id
				});

				if (datashopDetails.data.code != 1) {
					this.$message.info(datashopDetails.data.msg);
					return
				}
				let infoshopDetails = datashopDetails.data;
				this.shopDetails = infoshopDetails.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(246, 247, 249, 1);
		background-size: 100% auto;
	}

	.storeDetails_flex_0 {
		background: rgba(255, 255, 255, 1);
		width: 750rpx;
		height: 88rpx;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.storeDetails_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		line-height: 50rpx;
	}

	.storeDetails_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: rgba(51, 51, 51, 1);
	}

	.storeDetails_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.storeDetails_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.storeDetails_numberfd1_0_c0_c1 {
		color: #FFFFFF;
		font-size: 20rpx;
		font-weight: 500;
		line-height: 33rpx;
	}

	.storeDetails_numberfd1_0_c0_c0 {
		color: #FFFFFF;
		font-size: 24rpx;
		font-weight: 500;
		line-height: 33rpx;
	}

	.storeDetails_numberfd1_0_c0 {
		background: rgba(0, 0, 0, 0.4);
		position: absolute;
		bottom: 20rpx;
		right: 30rpx;
		width: 73rpx;
		height: 32rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		font-size: 24rpx;
		color: #FFFFFF;
		line-height: 46rpx;
		font-weight: 400;
	}

	.storeDetails_fd1_0 {
		width: 750rpx;
		height: 400rpx;
	}

	.storeDetails_swiperDotUnselectedfd1_0 {
		border: 1px solid rgba(0, 0, 0, 0.3);
		background: rgba(0, 0, 0, 0.3);
		width: 16rpx;
		height: 16rpx;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	.storeDetails_swiperDotSelectedfd1_0 {
		border: 1px solid #00A7FF;
		background: #00A7FF;
		width: 16rpx;
		height: 16rpx;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	::v-deep .storeDetails_swiperDotfd1_0 {
		position: absolute;
		bottom: 84rpx;
		left: 0rpx;
		right: 0rpx;
	}

	.storeDetails_flex_2 {
		background: #fff;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: -60rpx 24rpx 16rpx 24rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
		position: relative;
	}

	.storeDetails_fd2_1_c1_c2 {
		color: #F29853;
		font-size: 22rpx;
		font-weight: 700;
		line-height: 33rpx;
	}

	.storeDetails_fd2_1_c1_c1 {
		color: #F29853;
		font-size: 22rpx;
		font-weight: 700;
		margin: 0rpx 0rpx 0rpx 9rpx;
	}

	.storeDetails_star1fd2_1_c1_c0 {
		height: 28rpx;
		margin: 0rpx 4rpx 0rpx 0rpx;
		width: 28rpx;
	}

	.storeDetails_star1fd2_1_c1_c0 {
		width: 28rpx;
		height: 28rpx;
		margin: 0rpx 4rpx 0rpx 0rpx;
	}

	.storeDetails_fd2_1_c1 {
		margin: 38rpx 0rpx 0rpx 0rpx;
	}

	.storeDetails_fd2_1_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.storeDetails_fd2_0 {
		width: 120rpx;
		height: 120rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.storeDetails_flex_3 {
		background: #fff;
		margin: 0rpx 24rpx 24rpx 24rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.storeDetails_fd3_2_c2 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.storeDetails_fd3_2_c1 {
		width: 28rpx;
		height: 28rpx;
		margin: 0rpx 8rpx 0rpx 64rpx;
	}

	.storeDetails_fd3_2_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.storeDetails_fd3_2 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.storeDetails_fd3_1_c1 {
		width: 14rpx;
		height: 26rpx;
	}

	.storeDetails_fd3_0_c2 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
		margin: 0rpx 10rpx 0rpx 10rpx;
	}

	.storeDetails_fd3_0_c1 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.storeDetails_fd3_0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
		margin: 0rpx auto 0rpx 0rpx;
	}

	.storeDetails_fd3_0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.storeDetails_flex_4 {
		background: rgba(246, 247, 249, 1);
		height: 16rpx;
		background-size: 100% auto !important;
	}

	.storeDetails_flex_5 {
		background: rgba(246, 247, 249, 1);
		height: 16rpx;
		background-size: 100% auto !important;
	}
</style>